package com.itheima.health.job.config;


import com.itheima.health.util.QiniuUtils;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration //声明这是一个配置类
public class QiNiuConfig {

    @Bean //声明bean
    @ConfigurationProperties("qiniu")  //以什么为前缀注入属性
    public QiniuUtils qiniuUtils(){
        return new QiniuUtils();
    }

}
